package com.xnyzc.lhy.resource.entity.amap;

import lombok.Data;

import java.util.List;

/**
 * @Author: huxuekuo
 * @Date: 2019-08-26 20:26
 * @Description:
 */
@Data
public class AmapGouldHistoryGps {
    private DataBean data;
    private int errcode;
    private Object errdetail;
    private String errmsg;

    @Data
    public static class DataBean {
        // 返回的轨迹条数
        private int counts;
        // 轨迹具体信息
        private List<TracksBean> tracks;

        /**
         * 距离时长,点位集合
         */
        @Data
        public static class TracksBean {
            // 返回的轨迹点数量
            private int counts;
            // 轨迹长度，单位：米
            private double distance;
            // 轨迹持续时间，单位：毫秒
            private double time;
            // 轨迹id
            private int trid;
            // 轨迹经纬度点具体信息
            private List<Point> points;

            /**
             * 点位集合内容
             */
            @Data
            public static class Point {
                /**
                 * 经纬度
                 * 格式：X,Y
                 */
                private String location;
                private Double speed;
                private Long locatetime;
                private Double height;
                private Double direction;
                private Double accuracy;
            }
        }
    }
}
